<template>
  <div class="singerBox">
    <div class="singerLeft">
      <SingerList />
    </div>
    <div class="singerRight">
      <SingerRight ref="singerRight" />
    </div>
  </div>
</template>

<script>
import SingerList from "@/views/Singer/singerList.vue";
import SingerRight from "@/views/Singer/singerRight.vue";
export default {
  created() {},
  components: { SingerList, SingerRight },
  beforeRouteUpdate(to, from, next) {
    next();
    this.$refs.singerRight.getData();
  },
};
</script>

<style lang="scss" scoped>
.singerBox {
  width: 980px;
  min-height: 700px;
  margin: 0 auto;
  background-color: #fff;
  border: 1px solid #d3d3d3;
  border-width: 0 1px;
  display: flex;
  .singerLeft {
    padding: 0 10px 40px;
    width: 180px;
    background: #f9f9f9;
    border-right: 1px solid #d3d3d3;
    box-sizing: border-box;
    overflow: hidden;
  }
  .singerRight {
    padding: 40px;
    flex: 1;
    box-sizing: border-box;
  }
}
</style>